#grally {
    width: 100%;
}

#grally h3 {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    padding: 50px 0;
}

.ccc {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, .6);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
    z-index: 99;
}

.ccc img {
    width: 100%;
}

.popup {
    background: #fff;
    border-radius: 4px;
    max-width: 400px;
    position: relative;
    margin: 4em auto;
    padding: 5em 5em;
    z-index: 999;
    text-align: center;
}

.popup p {
    text-align: center;
    font-size: 14px;
    color: #999;
    padding-top: 20px;
}

.ccc:target {
    visibility: visible;
    opacity: 1;
    z-index: 9999;
}

.gallery-box1 a {
    width: 100%;
    display: block;
    margin: 0 auto 20px;
}

.gallery-box1 a img {
    width: 100%;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 999;
}

@media screen and (max-width:768px) {
    #grally h3 {
        padding: 5px 0;
        font-size: 30px;
    }
    .gallery-box1 a {
        width: 100%;
        display: block;
        margin: 0 auto 20px;
    }
    .gallery-box1 a img {
        width: 100%;
    }
    .popup {
        margin: 10em auto;
    }
}